home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_13_10 / saks / kr1.c < prev    next >
Encoding:
Text File  |  1995-08-03  |  281 b   |  20 lines

  1. Listing 3 - Examples of the K & R
  2. indenting style applied C/C++ if-else and
  3. while statements.
  4.  
  5. if (expression) {
  6.     statement;
  7.     statement;
  8.     ...
  9. } else {
  10.     statement;
  11.     statement;
  12.     ...
  13. }
  14.  
  15. while (expression) {
  16.     statement;
  17.     statement;
  18.     ...
  19. }
  20.